
// 自动生成模板SeckillActivity
package seckill
import (
	"time"
)

// 秒杀活动 结构体  SeckillActivity
type SeckillActivity struct {
  ActivityId  *int32 `json:"activityId" form:"activityId" gorm:"primarykey;column:activity_id;"`  //活动ID
  ProductId  *int32 `json:"productId" form:"productId" gorm:"column:product_id;" binding:"required"`  //商品ID
  SeckillPrice  *float64 `json:"seckillPrice" form:"seckillPrice" gorm:"column:seckill_price;size:10;" binding:"required"`  //活动价格
  SeckillStock  *int32 `json:"seckillStock" form:"seckillStock" gorm:"column:seckill_stock;" binding:"required"`  //活动库存
  StartTime  *time.Time `json:"startTime" form:"startTime" gorm:"column:start_time;" binding:"required"`  //开始时间
  EndTime  *time.Time `json:"endTime" form:"endTime" gorm:"column:end_time;" binding:"required"`  //结束时间
  Status  *string `json:"status" form:"status" gorm:"column:status;size:10;" binding:"required"`  //活动状态
}


// TableName 秒杀活动 SeckillActivity自定义表名 seckill_activity
func (SeckillActivity) TableName() string {
    return "seckill_activity"
}





